﻿using DryIoc;
using EONFULLSIN2.Models.Enum;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EONFULLSIN2.Models.Dto.Device {
    /// <summary>
    /// 传感器项目类
    /// </summary>
    public class SensorItemDto : BindableBase {
      
        private int _id;
        /// <summary>
        /// 传感器序号ID
        /// </summary>
        public int ID {
            get { return _id; }
            set { _id = value; base.RaisePropertyChanged(); }
        }
       
        private string _name;
        /// <summary>
        /// 传感器名称
        /// </summary>
        public string Name {
            get { return _name; }
            set { _name = value; base.RaisePropertyChanged(); }
        }

        private string _description;
        /// <summary>
        /// 描述
        /// </summary>
        public string Description {
            get { return _description; }
            set { _description = value; base.RaisePropertyChanged(); }
        }

        private string _codeNumber;
        /// <summary>
        /// 传感器编号
        /// </summary>
        public string CodeNumber {
            get { return _codeNumber; }
            set { _codeNumber = value; base.RaisePropertyChanged(); }
        }
       
        private object _value;
        /// <summary>
        /// 传感器值
        /// </summary>
        public object Value {
            get { return _value; }
            set { _value = value; base.RaisePropertyChanged(); }
        }
       
        private eSensorTypeEnum _type;
        /// <summary>
        /// 传感器类型
        /// </summary>
        public eSensorTypeEnum Type {
            get { return _type; }
            set { _type = value; base.RaisePropertyChanged(); }
        }

        private object _dataSourceAddress;
        /// <summary>
        /// 数据来源地址
        /// </summary>
        public object DataSourceAddress {
            get { return _dataSourceAddress; }
            set { _dataSourceAddress = value; base.RaisePropertyChanged(); }
        }

        /// <summary>
        /// 是否启用
        /// </summary>
        private bool _isEnable;

        public bool IsEnable {
            get { return _isEnable; }
            set { _isEnable = value; base.RaisePropertyChanged(); }
        }
    }
}
